package day20170411;

public class Teacher {
	/**
	 * 老师名字
	 */
	private String name;
	
	/**
	 * 老师年龄
	 */
	private int age;
	
	/**
	 * 老师工资
	 */
	private double salary;
	
	/**
	 * 构造方法
	 * @param name		老师名字
	 * @param age		老师年龄
	 * @param salary	老师工资
	 */
	public Teacher(String name,int age,double salary){
		this.name = name;
		this.age = age;
		this.salary = salary;
	}
	
	@Override
	public String toString() {
		return "Teacher [name=" + name + ", age=" + age + ", salary=" + salary + "]";
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
}
